# Copyright 1996-2001 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
# and distributed under the terms of the FreeType project license,
# LICENSE.TXT.  By continuing to use, modify, or distribute this file you
# indicate that you have read the license and understand and accept it
# fully.

RMF = @RM@ -f

MAKEFILE = arch/unix/Makefile

FTLIBDIR = lib
FTTESTDIR = test
FTPODIR = po

all: ttlib tttest ttpo

debug: ttlibdebug tttest ttpo

# we can't use the target names 'lib', 'test', etc.
# because make will believe that the directories are
# the targets and are up-to-date! Grrr... >:-(

ttlib:
	cd $(FTLIBDIR); $(MAKE) -f $(MAKEFILE) all

ttlibdebug:
	cd $(FTLIBDIR); $(MAKE) -f $(MAKEFILE) debug

tttest:
	cd $(FTTESTDIR); $(MAKE) -f $(MAKEFILE) all

ttpo:
	cd $(FTPODIR); $(MAKE) all

install: 
	cd $(FTLIBDIR); $(MAKE) -f $(MAKEFILE) install
	cd $(FTTESTDIR); $(MAKE) -f $(MAKEFILE) install
	cd $(FTPODIR); $(MAKE) install

uninstall:
	cd $(FTLIBDIR); $(MAKE) -f $(MAKEFILE) uninstall
	cd $(FTTESTDIR); $(MAKE) -f $(MAKEFILE) uninstall
	cd $(FTPODIR); $(MAKE) uninstall

clean:
	cd $(FTLIBDIR); $(MAKE) -f $(MAKEFILE) clean
	cd $(FTTESTDIR); $(MAKE) -f $(MAKEFILE) clean
	cd $(FTPODIR); $(MAKE) clean

distclean:
	cd $(FTLIBDIR); $(MAKE) -f $(MAKEFILE) distclean
	cd $(FTTESTDIR); $(MAKE) -f $(MAKEFILE) distclean
	cd $(FTPODIR); $(MAKE) distclean
	$(RMF) config.cache config.log config.status Makefile \
               MakeSub ft_conf.h libtool

check:
	@echo This package does not yet have a validation suite

depend:
	cd $(FTLIBDIR); $(MAKE) -f $(MAKEFILE) depend
	cd $(FTTESTDIR); $(MAKE) -f $(MAKEFILE) depend

.PHONY: all debug ttlib ttlibdebug tttest ttpo install uninstall \
	clean distclean depend

# end of Makefile.in
